-- Great tutorial
-- Author: Xing Wenju
-- Date: 2014-04-04 12:19:24
--
function copyfile(source,destination)
    sourcefile = io.open(source,r)
    destinationfile = io.open(destination,w)
    for line in sourcefile:lines() do
        destinationfile:write(line)
    end
    sourcefile:close()
    destinationfile:close()
end

copyfile("data","data1")
